<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>优惠列表</title>
    <meta name="keywords" content="优惠详情">
    <meta name="description" content="优惠详情">

<#include "/commons/stylesheets.ftl">

    <link href="/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="/layer/skin/layer.css" rel="stylesheet">
    
    
    <style type="text/css">
        #toolbar button {
            margin-right: 10px;
        }
    </style>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                   
                </div>
                <div class="ibox-content">
                	
                    
                   <form role="form" id="form-search" class="form-horizontal">
                   		<input type="hidden" name="couponId" value="${coupon.id!}"/>
                   </form>
                    <button class="btn btn-white" type="button" onClick=" window.history.go(-1); return false;">返回</button>
                    
                    <table id="userTable"
                               data-icons-prefix="fa"
                               data-toolbar="#toolbar"
                               data-data-field="list"
                               data-search="false"
                               data-show-refresh="true"
                               data-show-columns="true"
                               data-show-export="true"
                               data-side-pagination="server"
                               data-pagination="true"
                               data-page-size="15"
                               data-page-list="[10,15,20,30]"
                               data-url="${rc.contextPath}/customerVehicle/queryBindByPage"
                               >
                            <thead>
                                <tr>
		                            <th data-field="middleName">昵称</th>
		                            <th data-field="cellphoneNumber">电话</th>
		                            <th data-field="gender">性别</th>
		                            <th data-field="ageRange">年龄</th>
		                            <th data-field="vehicleBrand">品牌</th>
		                            <th data-field="vehicleSeries">车型</th>
		                            <th data-field="vehicleLicense" >车牌</th>
		                            <th data-field="vehicleMiles">公里</th>
		                            <th data-field="vehicleYears">年限</th>
                                </tr>
                            </thead>

                        </table>

                </div>
            </div>
        </div>
    </div>
    
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                   
                </div>
                <div class="ibox-content">
                	
                    
                    <div id="toolbar">

                    </div>
                    
                    <table id="businessTable"
                               data-icons-prefix="fa"
                               data-toolbar="#toolbar"
                               data-data-field="list"
                               data-search="false"
                               data-show-refresh="true"
                               data-show-columns="true"
                               data-show-export="true"
                               data-side-pagination="server"
                               data-pagination="true"
                               data-page-size="15"
                               data-page-list="[10,15,20,30]"
                               data-url="${rc.contextPath}/business/bindDetail"
                               >
                            <thead>
                                <tr>
		                            <th data-field="storeName">商户名</th>
		                            <th data-field="legalPerson">负责人</th>
		                            <th data-field="cellphoneNumber">电话</th>
		                            <th data-field="storeType">商户类型</th>
		                            <th data-field="storeAddress">地址</th>
		                            <th data-field="storeAddress">简介</th>
                                </tr>
                            </thead>

                        </table>

                </div>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<#include "/commons/scripts.ftl">
<script src="/layer/layer.js"></script>
<script src="/js/app.js"></script>

<!-- 自定义js -->
<script src="/js/content.min.js?v=1.0.0"></script>

<script src="/js/plugins/layer/laydate/laydate.js"></script>
<!-- Data Tables -->
<script src="/js/plugins/dataTables/jquery.dataTables.js"></script>
<script src="/js/plugins/dataTables/dataTables.bootstrap.js"></script>

<script type="text/javascript" src="/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>

<!-- Chosen -->
<script src="/js/plugins/chosen/chosen.jquery.js"></script>

<!-- Switchery -->
<script src="/js/plugins/switchery/switchery.js"></script>

<script type="application/javascript">

	$(function(){$("#userTable").bootstrapTable({locale:'zh-CN'})});
	$(function(){$("#businessTable").bootstrapTable({locale:'zh-CN'})});

	$().ready(function(){
		search();
	});

	function search(){
        $("#userTable").bootstrapTable("refresh",{query:serializeForm("#form-search")});
        $("#businessTable").bootstrapTable("refresh",{query:serializeForm("#form-search")});
    }

</script>

</body>

</html>